﻿#ifndef FITKVAONEHDF5ADAPTORFREQUENCIES_H
#define FITKVAONEHDF5ADAPTORFREQUENCIES_H

#include "FITKVAOneHDF5IOAPI.h"
#include "FITKVAOneHDF5AbstractAdaptor.h"
#include "FITK_Kernel/FITKAdaptor/FITKIOAdaptorFactory.h"

namespace IO
{
    class FITKVAOneHDF5IO_API FITKVAOneHDF5AdaptorFrequencies : public FITKVAOneHDF5AbstractAdaptor
    {
        FITKCLASS(IO, FITKVAOneHDF5AdaptorFrequencies);
    public:
        explicit FITKVAOneHDF5AdaptorFrequencies() = default;

        virtual ~FITKVAOneHDF5AdaptorFrequencies() = default;

        /**
         * @brief   适配器读数据
         * @return  是否执行成功
         * @author  TanDongYang (tandongyang@diso.cn)
         * @date    2024-11-24 
         */
        bool adaptR() override;

        /**
         * @brief   适配器写数据
         * @return  是否执行成功
         * @author  TanDongYang (tandongyang@diso.cn)
         * @date    2024-11-24 
         */
        bool adaptW() override;

    private:

        bool readDataSet();

        bool readAttribute();

    };
    Register2FITKIOAdaptorFactory(VAOneHDF5PostData, Acoustics::FITKAcousticsHDF5Frequencies, FITKVAOneHDF5AdaptorFrequencies)

}

#endif // FITKVAONEHDF5ADAPTORFREQUENCIES_H
